/*
 * @Author: your name
 * @Date: 2020-09-18 10:44:32
 * @LastEditTime: 2020-12-22 22:38:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\model\roadBase.js
 */
module.exports = app => {
  const mongoose = app.mongoose
  const RoadBaseSchema = new mongoose.Schema({
    roadId: { type: Number, unique: false },
    trajectory: { type: String, unique: false },
    roadBeginEtcId: { type: String, unique: false },
    roadBeginEtcName: { type: String, unique: false },
    roadEndEtcId: { type: String, unique: false },
    roadEndEtcName: { type: String, unique: false },
    roadDistance: { type: String, unique: false },

  }, { timestamps: { createdAt: 'created', updatedAt: 'updated' }, usePushEach: true })
  return mongoose.model('RoadBase', RoadBaseSchema)
}



